/*

    tools23d - tools for converting images to 3D formats.
    Copyright (C) 2014  Dave Gorst

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef READML_H_INCLUDED
#define READML_H_INCLUDED

/**
@brief	"Read multiple lines" return codes.

Status codes indicating success or failure of reading lines from text buffer.
*/

typedef enum 
{
	readml_success = 0,	/**<Successful read of a line */
	readml_error,		/**<An error ocurred while reading */
	readml_blank_line,	/**<An empty line was detected */
	readml_no_more_lines	/**<End of input buffer */
} readml_return;

readml_return T3D_GetFirstLine (char *, char *);
readml_return T3D_GetNextLine (char *);

#endif
